package bishihuizong;

/**
 * Created by JiaJia on 2019/9/17 0017.
 */
public class Parent {
    private  static final String PARENT="parent";
    private  static final String CHILD="child";
    public Parent(){
        System.out.println(PARENT+"A");
    }
    static {
        System.out.println(PARENT+"B");
    }
    {
        System.out.println(PARENT+"C");
    }
    static class Child extends Parent{
        public Child(){
            System.out.println(CHILD+"A");
        }
        static {
            System.out.println(CHILD+"B");
        }
        {
            System.out.println(CHILD+"C");
        }
    }

    public static void main(String[] args) {
        Child child=new Child();
    }
}